package com.example.recyclerimageload.glide_load_img.adapter;

import androidx.recyclerview.widget.RecyclerView;

public class MyItemDecoration extends RecyclerView.ItemDecoration {

    public MyItemDecoration(final OnPositionListener listener){
        MyAdapter.getInstance().setOnPositionListener(new MyAdapter.OnPositionListener() {
            @Override
            public void onPosition(int position) {
                listener.isFist(position);
            }
        });
    }

    public interface OnPositionListener{
        boolean isFist(int position);
    }
}
